// export default function (res) {
//     // req_body_is_json_schema is false, and req_body_other is not provided,
//     // so no request body validation is needed.

//     let index = 0;

//     const generateOrgTree = (level, parentId = null, maxDepth = 3, currentDepth = 0) => {
//         if (currentDepth >= maxDepth) {
//             return [];
//         }

//         const numChildren = Math.floor(Math.random() * 3) + 1; // 1 to 3 children
//         const children = [];
//         for (let i = 0; i < numChildren; i++) {
//             const id = index++;
//             let nextLevel;
//             if (level === 10) nextLevel = 20;
//             else if (level === 20) nextLevel = 30;
//             else if (level === 30) nextLevel = 40;
//             else nextLevel = 40; //小组层级不再向下

//             children.push({
//                 id: id,
//                 name: `${['中心', '子中心', '部门', '小组'][level / 10 - 1]}${id}`,
//                 level: level,
//                 seq: i + 1,
//                 parentId: parentId,
//                 children: generateOrgTree(nextLevel, id, maxDepth, currentDepth + 1),
//             });
//         }
//         return children;
//     };

//     return new Promise((resolve) => {
//         setTimeout(() => {
//             resolve({
//                 code: 0,
//                 message: 'success',
//                 data: generateOrgTree(10, null, 3), // Starting with "中心" (level 10), max 3 levels deep
//                 timestamp: Date.now(),
//                 signature: 'signature' + Math.floor(Math.random() * 1000),
//                 requestId: 'requestId' + Math.floor(Math.random() * 1000),
//             });
//         }, 100);
//     });
// }


export default {
    "code": 0,
    "message": "success",
    "data": [
        {
            "id": 0,
            "name": "中心0",
            "level": 10,
            "seq": 1,
            "parentId": null,
            "children": [
                {
                    "id": 1,
                    "name": "子中心1",
                    "level": 20,
                    "seq": 1,
                    "parentId": 0,
                    "children": [
                        {
                            "id": 2,
                            "name": "部门2",
                            "level": 30,
                            "seq": 1,
                            "parentId": 1,
                            "children": []
                        },
                        {
                            "id": 3,
                            "name": "部门3",
                            "level": 30,
                            "seq": 2,
                            "parentId": 1,
                            "children": []
                        }
                    ]
                }
            ]
        },
        {
            "id": 4,
            "name": "中心4",
            "level": 10,
            "seq": 2,
            "parentId": null,
            "children": [
                {
                    "id": 5,
                    "name": "子中心5",
                    "level": 20,
                    "seq": 1,
                    "parentId": 4,
                    "children": [
                        {
                            "id": 6,
                            "name": "部门6",
                            "level": 30,
                            "seq": 1,
                            "parentId": 5,
                            "children": []
                        },
                        {
                            "id": 7,
                            "name": "部门7",
                            "level": 30,
                            "seq": 2,
                            "parentId": 5,
                            "children": []
                        }
                    ]
                },
                {
                    "id": 8,
                    "name": "子中心8",
                    "level": 20,
                    "seq": 2,
                    "parentId": 4,
                    "children": [
                        {
                            "id": 9,
                            "name": "部门9",
                            "level": 30,
                            "seq": 1,
                            "parentId": 8,
                            "children": []
                        },
                        {
                            "id": 10,
                            "name": "部门10",
                            "level": 30,
                            "seq": 2,
                            "parentId": 8,
                            "children": []
                        }
                    ]
                }
            ]
        },
        {
            "id": 11,
            "name": "中心11",
            "level": 10,
            "seq": 3,
            "parentId": null,
            "children": [
                {
                    "id": 12,
                    "name": "子中心12",
                    "level": 20,
                    "seq": 1,
                    "parentId": 11,
                    "children": [
                        {
                            "id": 13,
                            "name": "部门13",
                            "level": 30,
                            "seq": 1,
                            "parentId": 12,
                            "children": []
                        }
                    ]
                }
            ]
        }
    ],
    "timestamp": 1750853562439,
    "signature": "signature721",
    "requestId": "requestId273",
    "isMock": true
}